﻿using System;
using System.ComponentModel.DataAnnotations;
using ProjectFootball.Foundation.Entities;

namespace ProjectFootball.Models.Entities.Main
{
    public class PersonV : BaseApprovableEntity
    {
        [StringLength(50)]
        public string Forenames { get; set; }

        [Required]
        [StringLength(50)]
        public string Surname { get; set; }

        [ScaffoldColumn(false)]
        public string SearchText { get; set; }

        public DateTime? DateOfBirth { get; set; }

        public DateTime? DateOfDeath { get; set; }
        
        public Guid? CountryGuid { get; set; }
                
        #region Navigation properties
        public virtual Country Country { get; set; }
        public virtual Person Person { get; set; }
        #endregion
    }
}
